package model

import (
	"time"
)

type Subscription struct {
	Id          uint32    `json:"id" grom:colummn:"id" bson:"_id"`
	Name        string    `json:"name" grom:colummn:"name" bson:"name"`
	Description string    `json:"description" grom:colummn:"description" bson:"description"`
	Email       string    `json:"email" grom:colummn:"email" bson:"email"`
	Phone       string    `json:"phone" grom:colummn:"phone" bson:"phone"`
	CreatedAt   time.Time `json:"created_at" grom:colummn:"created_at" bson:"created_at"`
	UpdatedAt   time.Time `json:"updated_at" grom:colummn:"updated_at" bson:"updated_at"`
}

func (Subscription) TableName() string {
	return "subscription"
}

type MSubscription struct {
	Id          string    `json:"id" bson:"_id,omitempty"`
	Name        string    `json:"name" bson:"name"`
	Description string    `json:"description" bson:"description"`
	Email       string    `json:"email" bson:"email"`
	Phone       string    `json:"phone" bson:"phone"`
	CreatedAt   time.Time `json:"created_at" bson:"created_at"`
	UpdatedAt   time.Time `json:"updated_at" bson:"updated_at"`
}
